package com.lyy.rev1ew.service;

import com.lyy.rev1ew.model.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Bean
    public User user1(){
        User user=new User();
        user.setSex("男");
        return user;
    }

    @Bean
    public User user2(){
        User user=new User();
        user.setSex("女");
        return user;
    }

    public void sayHi(){
        System.out.println("hi,UserService...");
    }
}


